package kr.hkit.androidcomplete01.chapter06;

import kr.hkit.androidcomplete01.R;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

public class Inflation4 extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		LinearLayout linear = new LinearLayout(this);
		linear.setOrientation(LinearLayout.VERTICAL);
		linear.setBackgroundColor(Color.LTGRAY);
		
		TextView tv = (TextView)View.inflate(this, R.layout.mytext, null);
		LinearLayout frame = (LinearLayout)View.inflate(this, R.layout.test_frame, null);
		
		linear.addView(tv);
		linear.addView(frame);
		setContentView(linear);
	}
}
